home *** CD-ROM | disk | FTP | other *** search
- #ifndef __STAT_BAR_H_
- #define __STAT_BAR_H_
-
-
- class view;
-
- #define TOTAL_WEAPONS 8
- #include "image.hpp"
-
- class status_bar
- {
- view *v;
- char need_rf,changed_cursor;
- int icon_in_selection,currently_selected_weapon;
-
- int bweap[TOTAL_WEAPONS], // bright weap image
- dweap[TOTAL_WEAPONS], // dark
- sbar,
- sbar_select,
- sbar_numpad,
- bnum[30];
-
- void area(int &x1, int &y1, int &x2, int &y2);
- void draw_num(image *screen, int x, int y, int num, int *offset);
- int mouse_in_area();
- public :
- status_bar();
- void associate(view *V) { v=V; }
- void load(); // load graphics into cache
- void redraw(image *screen);
-
- void step();
- void draw_health(image *screen,int amount);
- void draw_ammo(image *screen, int weapon_num, int amount, int light);
- void need_refresh() { need_rf=1; }
- void draw_update();
- };
-
- extern status_bar sbar;
-
- #endif
-